package com.example.sy2.demos.web.mapper;

import com.example.sy2.demos.web.entity.Grade;
import org.springframework.data.jpa.repository.JpaRepository;

import java.math.BigDecimal;
import java.util.List;

public interface GradeRepository extends JpaRepository<Grade, Long> {
    List<Grade> findAll();
    List<Grade> findByCourseId(Long courseId);
    List<Grade> findByScoreBetween(BigDecimal minScore, BigDecimal maxScore);
}
